package com.ting.log.db;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.ting.common.vo.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

/**
 * 系统配置表   sys_config
 * 
 * @author zifang
 * @email 1042868422@qq.com
 * @date 2022-07-29 22:04:48
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("操作日志表")
public class LogOperate extends BaseModel {

	@TableId(type = IdType.AUTO)
	@ApiModelProperty(value = "id")
	private Long id;

	@ApiModelProperty(value = "操作唯一标识")
	private String uuid;

	@ApiModelProperty(value = "用户id")
	private Long userId;

	@ApiModelProperty(value = "用户名")
	private String userName;

	@ApiModelProperty(value = "操作模块")
	private String operationModule;

	@ApiModelProperty(value = "操作内容")
	private String operationName;

	@ApiModelProperty(value = "来源")
	private String source;

	@ApiModelProperty(value = "ip")
	private String ip;

	@ApiModelProperty(value = "ip识别的地点")
	private String positionName;

	@ApiModelProperty(value = "ua")
	private String ua;

	@ApiModelProperty(value = "请求结果")
	private Boolean result;

	@ApiModelProperty(value = "请求参数")
	private String requestParam;

	@ApiModelProperty(value = "错误信息")
	private String errorMsg;

	@ApiModelProperty(value = "创建时间")
	private String createTime;

	@ApiModelProperty(value = "原文hash")
	private String hmac;
	@ApiModelProperty(value = "完整性校验")
	private Boolean hmacFlag;
	@ApiModelProperty(value = "加密数据")
	private String cipherText;


}
